/*
 * @Author: yanyqf
 * @Date: 2020-03-06 10:51:56
 * @LastEditTime: 2020-03-17 09:37:51
 * @Description: file content
 */


import React, { Component, Fragment } from 'react'
import creactUIParams from './UIIndex.js'


let createYGCPage = (pageParams = {}) => (_Component) => {
    return class CommonComponent extends Component {
        constructor(props) {
            super(props);
            this.state = {
                search : {}
            }
            creactUIParams.call(this)
        }

        render() {
            return (
                <_Component
                    {...pageParams}
                    search={this.state.search}
                    YGCCreateSearch={this.YGCCreateSearch}
                />
            )
        }

        componentDidMount() {
            this.setComponentFn()
        }
        setComponentFn = () => {
            this.setState({
                search:  this.searchC.search
            })
        }
    }
};

export default createYGCPage

